import Home from '@/views/Home'
import Login from "@/views/Login";
const routes = [
    {
        path: '/login',
        name: 'login',
        component: Login
    },
    {
        path: '/',
        name: 'home',
        component: Home,
        children:[
            {
                path: '/user/userManager',
                name: 'userManager',
                component: ()=>import('@/views/modules/user/UserManager')
            },
            {
                path: '/role/roleManager',
                name: 'roleManager',
                component: ()=>import('@/views/modules/role/RoleManager')
            },

            {
                path: '/org/orgManager',
                name: 'orgManager',
                component: ()=>import('@/views/modules/org/OrgManager')
            },

            {
                path: '/menu/menuManager',
                name: 'menuManager',
                component: ()=>import('@/views/modules/menu/MenuManager')
            },

            {
                path: '/dict/dictManager',
                name: 'dictManager',
                component: ()=>import('@/views/modules/dict/DictManager')
            },
        ]
    }
]

export default routes;